package com.smart.controller;

import com.smart.service.StatisticalService;
import com.smart.util.Messages;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author lgb
 * @date 2020年7月2日 下午7:25:13
 * Copyright (C) 深圳工勘科技
 * @说明: 统计管理
 **/
@RestController
@RequestMapping("/sys/statistical/")
public class StatisticalController extends BaseController{

    @Resource
    private StatisticalService statisticalService;

    @GetMapping(value="work")
    @ApiOperation(value="查询工作统计")
    public Messages<List<Map<String, Object>>> work(){
        return Messages.success(statisticalService.attendanceStatistical());
    }

}